package com.sunwoda.springbootredis.controller;

import com.sunwoda.springbootredis.service.OpsHashService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springbootredis
 * @description: 操作hash
 * @author: SGR
 * @create: 2021-09-13 11:24
 **/
@RestController
@RequestMapping(value = "/opsHash")
public class OpsHashController {

    @Autowired
    private OpsHashService opsHashService;

    /**
    * @Description: 操作hash
    * @Param:
    * @return:
    * @Author: SGR
    * @Date: 2021-09-13
    */
    @GetMapping(value = "/hash")
    public void opsHash(){
        this.opsHashService.opsHash();
    }
}
